package com.crowdfunding.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoyu
 * @since 2021-07-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("捐款记录实体类")
public class RecordCrowdFunding extends Model<RecordCrowdFunding> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "cfr_id", type = IdType.AUTO)
    @JsonIgnore
    private Integer cfrId;

    @ApiModelProperty("项目id")
    private String cfId;

    @ApiModelProperty("付款人用户名")
    private String username;

    @ApiModelProperty("付款金额")
    private Double cfrAmount;

    @ApiModelProperty("付款时间")
    private Date cfrTime;


    @Override
    protected Serializable pkVal() {
        return this.cfrId;
    }

}
